package com.meilai.project.constant;

import lombok.Getter;

/**
 * @author 张驰
 * @description 工作台-日程事件-类型枚举类
 * @date 2022-09-07 11:07
 */
@Getter
public enum WorkPlatformCalendarEventTypeEnum {
    CUSTOMER_FOLLOW(1, "拜访"),
    MISSION_DISTRIBUTE(2, "任务"),
    CUSTOM(99, "自定义");

    private final Integer id;
    private final String name;

    WorkPlatformCalendarEventTypeEnum(Integer id, String name) {
        this.id = id;
        this.name = name;
    }

    /**
     * 生成日程时间uuid
     * @param type 类型
     * @param userId 用户id
     * @param dataId 数据id
     */
    public static String genEventUUID(WorkPlatformCalendarEventTypeEnum type, Long userId, Long dataId){
        return type.getId()+"_"+userId+"_"+dataId;
    }
}
